<template>
  <el-config-provider :locale="locale" :size="assemblySize">
    <router-view></router-view>
  </el-config-provider>
</template>

<script setup>
import { computed } from 'vue'
import { useGlobalStore } from './stores/global'
import { useTheme } from '@/hooks/useTheme'
import zhCn from 'element-plus/es/locale/lang/zh-cn'

// 初始化主题
useTheme().initTheme()

// 全局配置element-plus中文
const locale = computed(() => zhCn)

// 全局配置element-plus尺寸
const assemblySize = computed(() => useGlobalStore().assemblySize)
</script>

<style scoped lang="scss"></style>
